﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

class HugeSpear : Weapon
{
    public HugeSpear()
    {
        m_Price = 5000;
        m_Type = ItemsType.WEAPON_BIG_KINETICS_HUGE_SPEAR;
        m_DamageType = DamageType.TYPE_KINETIC;
        m_Speciality = Speciality.MAIN;
        ResearchInfluence = InfluenceMG.INFLUENCE_EARTH;
        m_Level = Level.LEVEL_BIG;
        ShutRange = 12f;
        ShutVelocity = 4f;
        BulletFlyVelocity = 9.8f;
        Damage = 380f;
        TurnSpeed = 50f;
        m_DropRate = 0.02f;
        Name = "巨矛";
        Perview = "Textures/Weapon/WeaponBig/HugeSpear";
        WeaponResource = "Perfabs/Weapon/Big/HugeSpear";
        BulletResource = "Perfabs/Bullet/ShortSpear";
        m_FireAudioResouce = "Perfabs/Audio/Pang";
        Description = "贯穿武器的顶尖作品";
    }

    public override FlyItem Fire(GameObject ship, WeaponSlot slot, Vector3 position, Vector3 direction)
    {
        Slot = slot;
        var item = base.Fire(ship, slot, position, direction);
        Bullet bullet = item as Bullet;
        if (bullet)
            bullet.m_Pierce = true;
        return item;
    }
}